<?php

include('codebase-php\bot_api.php');
include('codebase-php\Utils.php');
include('codebase-php\LocalDataClass.php');
include('codebase-php\BotClass.php');
include('codebase-php\GetSettingsFromXml.php');
set_include_path(get_include_path() . PATH_SEPARATOR . "codebase-php");
include('Zend\config.php');
include('Zend\Config\Xml.php');

AutoStart($argv);

include('ImageDL_class.php');
$np = new ImageDLPlugin();

if (isset($getP['action']))
{
	if ($getP['action'] == 'refresh')
	{
		$np->ld->userId=$CurrentUserId;
		$np->ld->EasyConnect();
		$np->GetForm($getP);
	}
	if ($getP['action'] == 'btn_rst_image')
	{
		$np->ld->userId=$CurrentUserId;
		$np->ld->EasyConnect();
		$np->ld->SavePlSettings('ImageDL', $postdata);
	}
}

?>